﻿using System;
using System.Collections.Generic;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 物料批次表
    /// </summary>
    public partial class TMaterialKey
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 质量状态：0-待检；1-合格；2-不合格；
        /// </summary>
        public int? QualityState { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public int? SupplierId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 生产厂家
        /// </summary>
        public string ProduceFactory { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 出厂日期
        /// </summary>
        public DateTime? OutFactoryDate { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? ExpireDate { get; set; }
        /// <summary>
        /// 质检日期
        /// </summary>
        public DateTime? Qadate { get; set; }
        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 部门编码
        /// </summary>
        public string DeptCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DeptName { get; set; }
        /// <summary>
        /// 合同号
        /// </summary>
        public string ContractNo { get; set; }
        /// <summary>
        /// 物料凭证号
        /// </summary>
        public string Mblnr { get; set; }
        /// <summary>
        /// 物料凭证年度
        /// </summary>
        public string Mjahr { get; set; }
        /// <summary>
        /// 物料凭证行项目
        /// </summary>
        public string Zeile { get; set; }
        /// <summary>
        /// 采购订单号
        /// </summary>
        public string PurOrderNo { get; set; }
        /// <summary>
        /// 采购订单行号
        /// </summary>
        public string PurOrderLineNo { get; set; }
        /// <summary>
        /// 采购订单行项目类型：0-无；1-L外协；2-U转储;3-正常采购
        /// </summary>
        public int? PurOrderLineType { get; set; }
        /// <summary>
        /// 生产订单号
        /// </summary>
        public string ProOrderNo { get; set; }

        /// <summary>
        /// 外协需求跟踪号
        /// </summary>
        public string OutOrderNo { get; set; }

        /// <summary>
        /// 库房Id
        /// </summary>
        public int? WarehouseId { get; set; }

        /// <summary>
        /// 库房编码
        /// </summary>
        public string WarehouseCode { get; set; }

        /// <summary>
        /// 库房名称
        /// </summary>
        public string WarehouseName { get; set; }
    }
}
